Repository navigation
P4-13: spike on real legacy outputs under GnuCOBOL - #497
Merged
Merged
Conversation
The spike note, docs/spikes/p4-13-gnucobol.md, answers D12 of docs/pipeline-4.md: CardDemo's batch programs compiled and run under GnuCOBOL, and their outputs set against the reconciled rules. The harness that ran it is in docs/spikes/p4-13/. It is not product code, and the run's outputs are not committed. - 10 of the 12 batch programs compile under GnuCOBOL 3.1.2 (Debian's package, in a container) and 8 run to a normal end on CardDemo's own data, in the JCL's order. CBSTM03A reads z/OS control blocks and crashes. CBEXPORT and CBIMPORT do not compile as written: their RECORD KEY is a WORKING-STORAGE field. - What they needed: tabs expanded; -fsign=EBCDIC for the data's overpunch signs; stand-ins for CEE3ABD and COBDATFT (translated line for line); a driver for CBACT04C's JCL PARM; the VSAM files built from the ASCII data with the JCL's keys and the XREF alternate key; and a stand-in for DFSORT. - The reconciled rules for posting and interest agree with the real outputs: 300 of 300 reject decisions, every account and category balance after posting, and 50 of 50 interest amounts, but only when amounts are truncated to the cent, which the interest rule does not say. - One recommended rule is wrong. The interest batch never posts the last account's interest: its loop ends before the end-of-file branch runs. That is a defect in CardDemo, and the rule says the opposite. The plan's P4-13 row and D12 in docs/pipeline-4.md record the result, and the note proposes a story for an optional legacy run in the golden datasets. Prepared with AI assistance.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
P4-13 (#423), part of #386. The note is docs/spikes/p4-13-gnucobol.md, and the harness is in
docs/spikes/p4-13/. There is no product code; only docs change.Answer: yes, for the batch programs that run, and the real outputs found a rule the reconciliation got wrong.
RECORD KEYis a WORKING-STORAGE field.Setup:
gnucobol3package, in a container. Homebrew couldn't build it on this Intel Mac, and nothing was installed on the Mac.CEE3ABD, the assemblerCOBDATFT, DFSORT), a driver for CBACT04C's JCL PARM, and the VSAM files built from CardDemo's data with the JCL's keys.Proposed in the note: a story for an optional "legacy run" in the golden datasets, where a difference between the real output and the rule becomes an SME question on that rule. And for the owner: correct the interest rules in the next reconciliation round.
Prepared with AI assistance.